<?php

use Drupal\mxm_article_tags\Entity\MxmArticleTags;
use Drupal\mxm_article_tags\Entity\MxmArticleTagsBind;

function mxm_article_tags_mxm_article_tags_add_page() {
  $e = new MxmArticleTags();
  module_load_include('inc', 'mxm_article_tags', 'mxm_article_tags.forms');
  return drupal_get_form('mxm_article_tags_mxm_article_tags_entity_form', $e, 'add');
}

function mxm_article_tags_mxm_article_tags_view_page(MxmArticleTags $e) {
  return entity_view($e->entityType(), [$e]);
}

function mxm_article_tags_mxm_article_tags_edit_page(MxmArticleTags $e) {
  module_load_include('inc', 'mxm_article_tags', 'mxm_article_tags.forms');
  return drupal_get_form('mxm_article_tags_mxm_article_tags_entity_form', $e, 'edit');
}

function mxm_article_tags_mxm_article_tags_delete_page(MxmArticleTags $e) {
  module_load_include('inc', 'mxm_article_tags', 'mxm_article_tags.forms');
  return drupal_get_form('mxm_article_tags_mxm_article_tags_delete_form', $e);
}

function mxm_article_tags_mxm_article_tags_bind_add_page() {
  $e = new MxmArticleTagsBind();
  module_load_include('inc', 'mxm_article_tags', 'mxm_article_tags.forms');
  return drupal_get_form('mxm_article_tags_mxm_article_tags_bind_entity_form', $e, 'add');
}

function mxm_article_tags_mxm_article_tags_bind_view_page(MxmArticleTagsBind $e) {
  return entity_view($e->entityType(), [$e]);
}

function mxm_article_tags_mxm_article_tags_bind_edit_page(MxmArticleTagsBind $e) {
  module_load_include('inc', 'mxm_article_tags', 'mxm_article_tags.forms');
  return drupal_get_form('mxm_article_tags_mxm_article_tags_bind_entity_form', $e, 'edit');
}

function mxm_article_tags_mxm_article_tags_bind_delete_page(MxmArticleTagsBind $e) {
  module_load_include('inc', 'mxm_article_tags', 'mxm_article_tags.forms');
  return drupal_get_form('mxm_article_tags_mxm_article_tags_bind_delete_form', $e);
}

